clear all;
clc;

nVar = 10;
ub = [ 10  1   10  10  10  10  10  10  10 1]; % 2nd and 10th variables are discrete
lb = [-10  0  -10 -10 -10 -10 -10 -10 -10 0];
fobj = @ObjectiveFunction;
dim = length(ub);

SearchAgents_no = 1000;   % Number of search agents
Max_iter = 500;         % Maximum number of iterations
BWOA_num = 2;

discrete_variables_indx = [2,5,10];

[Leader_score, Leader_pos, Convergence_curve] = WOA_BWOA_sub(SearchAgents_no, Max_iter, lb, ub, dim, fobj, BWOA_num,discrete_variables_indx);
Leader_score
Leader_pos